$(function () {
    $(".btn_load").click(function () {
        var url = $(this).data("url");
        $.dialog({
            title:"操作提示",
            icon:"face-smile",
            content:"重新加载权限可能耗费很长时间，你确定重新加载吗？",
            cancel:true,
            ok:function () {
                var dialog = $.dialog({
                    title:"操作提示",
                    icon:"face-smile"
                });
                $.get(url,function () {
                   dialog.content("加载权限成功").button({
                       name:"确定",
                       callback:function () {
                           window.location.reload();
                       }
                   });
                });
            }
        });
    });
});